//
//  BaseViewController.h
//  EraPig
//
//  Created by Mac_Mini on 2021/1/7.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface BaseViewController : UIViewController

/// 弹出UIAlertController弹窗
/// @param title 弹窗辩题
/// @param message 弹窗描述
/// @param cancelBlock 取消
/// @param confirmBlock 确认
- (void)showAlertWithTitle:(nullable NSString *)title
                   message:(NSString *)message
               cancelBlock:(void(^)(void))cancelBlock
              confirmBlock:(void(^)(void))confirmBlock;

/// 弹出UIAlertController弹窗
/// @param title 弹窗辩题
/// @param message 弹窗描述
/// @param confirmBlock 确认
- (void)showAlertWithTitle:(nullable NSString *)title
                   message:(NSString *)message
              confirmBlock:(void(^)(void))confirmBlock;

/// svp
- (void)showWaitHUD;//请稍等...
- (void)showWithMsg:(NSString *)msg;
- (void)showSuccessWithMsg:(NSString *)msg;
- (void)showErrorWithMsg:(NSString *)msg;
- (void)hideWaitHUD;

///登录成功的通知响应 子类不需要释放该通知
- (void)loginSuccessedNotification:(NSNotification *)notification;
@end

NS_ASSUME_NONNULL_END
